<%@ Page Language="C#" MasterPageFile="~/GUI/Webpage/Admin/MasterAdmin.master" AutoEventWireup="true" CodeFile="UserManagement.aspx.cs" Inherits="GUI_Webpage_Default" Title="User management" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="tdHolder" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <table  class="TableOrderContent" border="0" cellpadding="5" cellspacing="5" align="center">
                                <tr> 
                                    <td>
                                        <strong>
                                            <i>
                                                User Management
                                            </i>
                                        </strong>
                                     </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="2" cellspacing="2">
                                             <tr>
                                                <td>
                                                    UserID
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtUserID" runat="server"></asp:TextBox>
                                                </td>
                                                <td>
                                                    Password
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtPassword" runat="server"></asp:TextBox>
                                                </td>
                                                <td>
                                                    Role
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="drpRole" runat="server">
                                                    </asp:DropDownList>
                                                </td>                                                                                                
                                             </tr>
                                             <tr>
                                                <td></td>
                                                <td>
                                                    <asp:Label ID="lblErrorUserID" runat="server"></asp:Label></td>
                                                <td></td>
                                                <td>
                                                    <asp:Label ID="lblErrorPassword" runat="server"></asp:Label></td>
                                                <td></td>                                             
                                                <td class="tdButton">                                                
                                                    <asp:Button ID="btnAdd" runat="server" Text="Create" class="button" OnClick="btnAdd_Click" />
                                                </td>
                                             </tr>                                                                                                                                                                                            
                                        </table>                                        
                                    </td>
                                </tr>                                
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table class="TableOrderContent" border="0" cellpadding="5" cellspacing="5">
                            <tr>
                                <td>
                                    <asp:GridView ID="grvUser" runat="server" CellPadding="10" 
                                    OnRowCancelingEdit="grvUser_RowCancelingEdit" 
                                    OnRowDeleting="grvUser_RowDeleting" OnRowEditing="grvUser_RowEditing" 
                                    OnRowUpdating="grvUser_RowUpdating" AutoGenerateColumns="False" 
                                    DataKeyNames="UserID">
                                        <Columns>
                                            <asp:BoundField DataField="userID" HeaderText="UserID" />
                                            <asp:BoundField DataField="password" HeaderText="Password" />
                                            <asp:BoundField DataField="description" HeaderText="Role" ReadOnly="True" />
                                            <asp:CommandField ShowEditButton="True" ShowHeader="True" >
                                                <ControlStyle ForeColor="Blue" />
                                            </asp:CommandField>
                                            <asp:CommandField ShowDeleteButton="True" >
                                                <ControlStyle ForeColor="Blue" />
                                            </asp:CommandField>
                                        </Columns>                                        
                                    </asp:GridView>
                                </td>
                            </tr>
                            </table>
                        </td>
                    </tr>
     </table>
</asp:Content>

